package com.jp.knowledge.adapter;

import android.content.Context;
import android.support.annotation.NonNull;

import com.jp.knowledge.R;
import com.jp.knowledge.my.base.RecycleVAdapter;
import com.jp.knowledge.my.base.RecycleVHolder;
import com.jp.knowledge.my.model.OrderModel;

import java.util.List;

/**
 * Created by 528787067@qq.com on 2017/5/4.
 */

public class OrderRelationAdapter extends RecycleVAdapter<OrderModel.RelationListBean> {

    public OrderRelationAdapter(Context context, @NonNull List<OrderModel.RelationListBean> list) {
        super(context, list);
    }

    @Override
    public int getLayoutId(int viewType) {
        return R.layout.item_order_relation;
    }

    @Override
    public void onBind(RecycleVHolder holder, int position) {
        holder.setImageUrl(R.id.order_item_icon, getData(position).getIcon());
    }
}
